<template>
  <div>
      <!-- {{list}} -->
      <ul v-for="i in list" :key="i">
          <li >{{i.name}}       
              <router-link :to='{path:"/setparams",query:{id:i.id}}'>参数</router-link>
        </li>
          
      </ul>

  </div>
</template>

<script>
export default {
data(){
    return{
        list:''
    }
},
methods:{
    getlist:function(){
        this.myaxios('http://localhost:5000/getlist','get',{})
        .then(res=>{
            console.log(res)

            this.list = res.data.list
        })
    }
},
mounted(){
    this.getlist()
}
}
</script>

<style>

</style>

